package org.umss.fixturebuilder.builder.data;

import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.ObjectifyFactory;
import com.googlecode.objectify.ObjectifyService;
import org.umss.fixturebuilder.model.appengine.ChampionshipModel;
import org.umss.fixturebuilder.model.appengine.PhaseModel;
import org.umss.fixturebuilder.model.appengine.GameModel;
import org.umss.fixturebuilder.model.appengine.RoundModel;
import org.umss.fixturebuilder.model.appengine.TeamModel;
import org.umss.fixturebuilder.model.appengine.TeamPosition;

/**
 *
 * @author Daniela Meneses
 */
public class OfyService {
    static {
        ObjectifyService.register(TeamModel.class);
        ObjectifyService.register(GameModel.class);
        ObjectifyService.register(RoundModel.class);
        ObjectifyService.register(PhaseModel.class);
        ObjectifyService.register(ChampionshipModel.class);
        ObjectifyService.register(TeamPosition.class);
    }

    public static Objectify ofy() {
        return ObjectifyService.ofy();
    }

    public static ObjectifyFactory factory() {
        return ObjectifyService.factory();
    }
}
